#include <iostream>
#include <cstdlib>
using namespace std;

int main()
{
    int n0, n1, n, sub = 0x3f3f3f3f, ans1 = 0x3f3f3f3f, ans2;
    cin >> n0 >> n1 >> n;
    for (int i = 1; i < n; i++)
    {
        int m1 = n0 % i;
        int m2 = n1 % (n - i);
        if (m1 + m2)
        {
            continue;
        }
        if (sub > abs(n0 / i - n1 / (n - i)))
        {
            sub = abs(n0 / i - n1 / (n - i));
            ans1 = i;
            ans2 = n - i;
        }
    }
    if (ans1 != 0x3f3f3f3f && (n0 / ans1 != 1) && (n1 % ans2 != 1))
    {
        cout << ans1 << " " << ans2;
    }
    else
    {
        cout << "No Solution";
    }
    return 0;
}